package lab02.test36;

public class Postgraduate extends Student {
    public Postgraduate(){}

    public Postgraduate(String name,String sort,double english,double math,double chinese){
        super(name,sort, english, math, chinese);


    }

    @Override
    public void underGrade() {

    }

    @Override
    public void postGrade() {
        double a=super.average(english, math, chinese);
        if (a > 90) {
            System.out.println("优秀");
        } else if (a >80) {
            System.out.println("良好");
        } else if (a > 70) {
            System.out.println("一般");
        } else if (a > 60) {
            System.out.println("及格");
        } else {
            System.out.println("不及格");
        }
    }


}


